package org.ucas.faker.web.entity.patents;

import org.ucas.faker.web.fetcher.annotation.Connection;
import org.ucas.faker.web.fetcher.annotation.JoinCond;
import org.ucas.faker.web.utils.model.RawPatent;

import javax.persistence.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

@Entity
@Table(name = "feature")
@Connection(table = "patent_meta", conds = {
    @JoinCond(column = "id", target = "id")
})
public class PatentFeature implements Patentable {

  @Id
  private Long id;

  @Transient
  private List<Symbol> br = new ArrayList<>();

  @Transient
  private List<Symbol> ef = new ArrayList<>();


//  @Column(name = "branch")
//  private String branch;
//
//  @Column(name = "effect")
//  private String effect;

  @Column(name = "value")
  private Double value;

  public PatentFeature() {}
  
  public PatentFeature(Long id) {
    this.id = id;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public List<Symbol> getBr() {
    return br;
  }

  public void setBr(List<Symbol> br) {
    this.br = br;
  }

  public List<Symbol> getEf() {
    return ef;
  }

  public void setEf(List<Symbol> ef) {
    this.ef = ef;
  }

  public Double getValue() {
    return value;
  }

  public void setValue(Double value) {
    this.value = value;
  }


}
